# -*- coding: utf-8 -*-

from django.contrib import admin
from models import *

class EmpresaAdmin(admin.ModelAdmin):
    prepopulated_fields = {"slug": ("nome",)}

class CampanhaAdmin(admin.ModelAdmin):
    prepopulated_fields = {"slug": ("nome",)}

admin.site.register(Caixa_geral)
admin.site.register(Empresa, EmpresaAdmin)
admin.site.register(Caixa)
admin.site.register(Entrada)
admin.site.register(Retirada)
admin.site.register(Campanha, CampanhaAdmin)
admin.site.register(Cliente)
admin.site.register(Produto)
admin.site.register(Item)
